<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="./stylesheets/reset.css">
    <link rel="stylesheet" href="./stylesheets/bootstrap.min.css">
    <link rel="stylesheet" href="./stylesheets/lyjNav.css">
    <link href="http:////at.alicdn.com/t/font_1512981_qy3wz899e7.css" rel="stylesheet">
    <link rel="stylesheet" href="./stylesheets/lyjcss/search2.css">
    <link rel="stylesheet" href="./stylesheets/lyjcss/Base.css">
    <style>
        .allType>div {
            margin-bottom: 20px;
        }
    </style>
</head>

<body>
    <div id="lxcbox">
        <div id="lxcheader"></div>
        <div id="lxcsearch"></div>
    </div>
    <div class="navwrap clear">
        <div id="nav"></div>
        <div class="tradecate"></div>
    </div>
    <div class="wrap1">
        <div class="breadNav">
            <span class="pull-left">您的当前位置：</span>
            <ol class="breadcrumb pull-left">
                <li><a href="#">首页</a></li>
                <li><a href="#">全部商品</a></li>
                <li><a href="#">苹果</a></li>
                <li class="active">阿克苏</li>
            </ol>
        </div>
        <div class="sortNav">
            <div class="sortLeft">
                <em>排序：</em>
                <span class="active">销量</span>
                <span>价格</span>
                <span>评分最高</span>
            </div>
            <div class="sortRight">
                <em>筛选：</em>
                <span class="active">全国</span>
                <span>次日达</span>
            </div>
        </div>
        <div class="allType clear">
            <!-- <div>
                <div class="aImg">
                    <img src="./images/lyjimg/friday2.png" alt="">
                </div>
                <div class="Info">
                    <h4>新西兰佳沛黄金奇异果</h4>
                    <span>果肉绵密、百尺不厌</span>
                    <p>
                        <span>￥28.8</span>
                        <s>￥40.00</s>
                        <i class="iconfont icon-gouwuche"></i>
                    </p>
                </div>
            </div>
            <div>
                <div class="aImg">
                    <img src="./images/lyjimg/friday2.png" alt="">
                </div>
                <div class="Info">
                    <h4>新西兰佳沛黄金奇异果</h4>
                    <span>果肉绵密、百尺不厌</span>
                    <p>
                        <span>￥28.8</span>
                        <s>￥40.00</s>
                        <i class="iconfont icon-gouwuche"></i>
                    </p>
                </div>
            </div>
            <div>
                <div class="aImg">
                    <img src="./images/lyjimg/friday2.png" alt="">
                </div>
                <div class="Info">
                    <h4>新西兰佳沛黄金奇异果</h4>
                    <span>果肉绵密、百尺不厌</span>
                    <p>
                        <span>￥28.8</span>
                        <s>￥40.00</s>
                        <i class="iconfont icon-gouwuche"></i>
                    </p>
                </div>
            </div>
            <div>
                <div class="aImg">
                    <img src="./images/lyjimg/friday2.png" alt="">
                </div>
                <div class="Info">
                    <h4>新西兰佳沛黄金奇异果</h4>
                    <span>果肉绵密、百尺不厌</span>
                    <p>
                        <span>￥28.8</span>
                        <s>￥40.00</s>
                        <i class="iconfont icon-gouwuche"></i>
                    </p>
                </div>
            </div> -->
        </div>
    </div>
    <!-- <div id="page"></div> -->
    <div id="lxcfooter">
        <div id="lxcfooter1"></div>
        <div id="lxcfooter2"></div>
        <div id="lxcbottom"></div>
    </div>
</body>
<script src="./javascripts/jquery-3.4.1.min.js"></script>
<script src="./javascripts/bootstrap.min.js"></script>
<script src="./javascripts/lxcheader.js"></script>
<script src="./javascripts/lyjNav.js"></script>
<script>
    ajaxreq('/search', { name: localStorage.getItem('searchName'), lyjIndex: '1' }, function (data) {
        for (let i = 0; i < data.length; i++) {
            $('<div></div>').html('<div class="aImg"><img src="" alt=""></div><div class="Info"><h4></h4><span></span><p><span></span><s></s><i class="iconfont icon-gouwuche"></i></p></div>').appendTo($('.allType'));
            $('.allType>div:eq(-1) .aImg img').prop('src', data[i].goods_image);
            $('.allType>div:eq(-1) .aImg').attr('goodID', data[i].goods_id);
            $('.allType>div:eq(-1) h4').html('￥' + data[i].goods_name);
            $('.allType>div:eq(-1) .Info>span').html('￥' + data[i].goods_desc);
            $('.allType>div:eq(-1) .Info p span').html('￥' + data[i].shop_price);
            $('.allType>div:eq(-1) .Info p s').html('￥' + data[i].shop_mprice);
        }
    })
</script>

</html>